<div class="bjui-pageHeader">
        <form id="pagerForm" data-toggle="ajaxsearch" action="{url}" method="post">
                <div class="bjui-searchBar">
                <ul >
                        <li>
                                {eq name="back" value="-1"}
                                <a href="{:U('System/auth_add')}" class="btn btn-green" data-toggle="dialog" data-mask="true" data-width="650" data-height="560" data-id="dialog-mask">添加</a>&nbsp;*非导航级请勿在此添加
                                {/eq}
                                {if condition="$back eq 0"} 
                                 <li><a href='{:U("System/auth")}' class="btn btn-green" data-toggle="navtab" data-id="System/auth" data-title="节点管理">返回上一级</a></li>
                                {elseif condition="$back gt 0"/}
                                 <li><a href='{:U("System/auth?pid=".$back)}' class="btn btn-green" data-toggle="navtab" data-id="System/auth" data-title="节点管理">返回上一级</a></li>
                                {/if}
                        </li>
                </ul>
        </div>
        </form>
        
</div>
<div class="bjui-pageContent">
        <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
                <thead>
                        <tr>
                                <th width='30' align="center">ID</th>
                                <th>显示名</th>
                                <th>节点名</th>                               
                                <th>层级</th>
                                <th>分组</th>
                                <th width="80" align="center">状态</th>
                                <th width="80" align="center">排序</th>
                                <th width="120" align="center">操作</th>
                        </tr>
                </thead>
                <tbody>
                        {present name="list"}
                        {volist name="list" id="vo"}
                        <tr height="40">
                                <td align="center">{$vo.id}</td>
                                <td>
                                        {switch name="back"}
                                        {case value="-1"}
                                        <a data-toggle="navtab" data-id="System/auth" data-title="节点管理" href='{:U("System/auth?source=".$vo["name"])}'> {$vo.title}（{$vo.child_num}）</a>
                                        {/case}	
                                        {case value="0"}
                                        <a data-toggle="navtab" data-id="System/auth" data-title="节点管理" href='{:U("System/auth?id=".$vo["id"])}'> {$vo.title}（{$vo.child_num}）</a>
                                        {/case}	
                                        {default /}
                                        {$vo.title} 
                                        {/switch}
                                </td>
                                <td>{$vo.name}</td>
                                <td>{$vo.source}</td>
                                <td>{$vo.group}</td>
                                <td align="center">{eq name="vo.menu" value="1"}显示{else /}不显示{/eq}</td>
                                <td align="center">{$vo.sort}</td>
                                <td align="center">
                                        {switch name="back"}
                                        {case value="-1"}
                                        <a title="添加节点" class="btn btn-green" href="{:U('System/auth_add?source='.$vo['name'])}" data-width="650" data-height="560" data-toggle="dialog" data-mask="true">添加</a>
                                        {/case}	
                                        {case value="0"}
                                        <a title="添加节点" href="{:U('System/auth_add?pid='.$vo['id'])}" class="btn btn-green" data-width="650" data-height="560" data-toggle="dialog" data-mask="true">添加</a>
                                        {/case}
                                        {/switch}
                                        {egt name='back' value="0"}
                                        <a title="编辑节点"  class="btn btn-green" href="{:U('System/auth_add?id='.$vo['id'])}" class="btn btn-green" href="{:U('System/auth_add?source='.$vo['name'])}" data-width="650" data-height="560" data-toggle="dialog" data-mask="true">编辑</a>                                     
                                        <a  class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？" href="{:U('System/auth_del?id='.$vo['id'])}">删除</a></td>
                                {/egt}
                                </td>
                        </tr>
                        {/volist}
                        {else /}
                        <tr height="40"><td colspan="8" align="center">暂无信息</td></tr>
                        {/present}

                </tbody>
        </table>        
</div>


